﻿<Page x:Class="WpfEffect.PageBllurEffect"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="800"
	Title="PageBllurEffect">
    <Canvas>
        
        <Image Height="150" Margin="487,10,153,140" Name="image2" Source="images/1.png" Stretch="Fill" Width="160">
            <Image.Effect>
                <BlurEffect x:Name="effecct" KernelType="Gaussian" RenderingBias="Performance" Radius="2" />
            </Image.Effect>
        </Image>
        <TextBlock Effect="{Binding ElementName=image2, Path=Effect}" FontSize="25" Height="47" Margin="499,194,120,59" Name="textBlock2" Text="测试字" Width="181" />
        <TextBox Height="78" Margin="10,194,392,28" Name="textBox1" TextWrapping="Wrap" Width="398" />
        <StackPanel Orientation="Horizontal" Canvas.Left="108" Canvas.Top="122"  >
            <RadioButton Content="Performance" IsChecked="True" GroupName="RenderingBias" Checked="RenderingBias_Checked" Height="16" Name="radioButton1" Width="100" />
            <RadioButton  Content="Quality"  GroupName="RenderingBias" Height="16" Checked="RenderingBias_Checked" Name="radioButton2" Width="100" />
        </StackPanel>
        <TextBlock Canvas.Left="10" Canvas.Top="122" Height="21" Name="textBlock1" Text="Performance" Width="89" />
        <StackPanel Canvas.Left="108" Canvas.Top="83" Orientation="Horizontal">
            <RadioButton Checked="KernelType_Checked" Content="Box" GroupName="RenderingBias" Height="16" IsChecked="True" Name="radioButton3" Width="100" />
            <RadioButton Checked="KernelType_Checked" Content="Gaussian" GroupName="RenderingBias" Height="16" Name="radioButton4" Width="100" />
        </StackPanel>
        <TextBlock Canvas.Left="10" Canvas.Top="83" Height="21" Name="textBlock3" Text="KernelType" Width="89" />
        <Slider AutoToolTipPlacement="BottomRight" AutoToolTipPrecision="1" Canvas.Left="96" 
                Canvas.Top="23" Height="22" Interval="1" LargeChange="1" Maximum="30" Minimum="0"
                Name="sldRadius" Value="{Binding ElementName=effecct, Path=Radius}" Width="312" />
        <TextBlock Canvas.Left="10" Canvas.Top="23" Height="21" Name="tbRadius" Text="Radius" Width="89" />
    </Canvas>
</Page>
